import { observer, makeObservable, action, observable } from "mobx";

class Store {
  @observable name = "小朱";
  // this.state={}
  @action
  setName = (text) => {
    // console.log(text);
    this.name = text;
  };
  constructor() {
    makeObservable(this);
  }
  //   this.setState({
  //       name:text
  //   })
}

export default Store;
